JavaScript

tabControl.removeTab Method

Syntax

tabObj.removeTab(tabPaneLabel);

Arguments

tabPaneLabelstring

The label for the pane to remove.

Description

Removes a pane from a Tab control.

Discussion

Removes a pane from a Tab control based on the pane's label. If you want to remove a pane from an Accordion control, use the .removeBand() method.

Example

//remove a pane from the Tab object with id of 'TAB_1';
//first, get a pointer to the Tab object
var tabObj = {dialog.object}.getControl('TAB_1');

if (tabObj) {
    //then remove pane
    tabObj.removeTab('My New Pane');
}

See Also